//
//  Config.h
//  BSoftWorkLog
//
//  Created by viola on 2017/8/30.
//  Copyright © 2017年 zarra. All rights reserved.
//

#ifndef Config_h
#define Config_h

//颜色
#define kWDColor(r, g, b, a) [UIColor colorWithRed:(r)/255.0 green:(g)/255.0 blue:(b)/255.0 alpha:(a)]


//屏幕尺寸
#define kScreenWidth ([UIScreen mainScreen].bounds.size.width)
#define kScreenHeight ([UIScreen mainScreen].bounds.size.height)

//userDefaults
#define kSAVE_INT(NUM,KEY) \
[[NSUserDefaults standardUserDefaults] setInteger:(NUM) forKey:(KEY)]; \
[[NSUserDefaults standardUserDefaults] synchronize];

#define kSAVE_VALUE(obj,key) \
[[NSUserDefaults standardUserDefaults] setValue:(obj) forKey:(key)]; \
[[NSUserDefaults standardUserDefaults] synchronize];

#define kSAVE_OBJECT(obj,key) \
[[NSUserDefaults standardUserDefaults] setObject:(obj) forKey:(key)]; \
[[NSUserDefaults standardUserDefaults] synchronize];

#define kGetValueForKey(KEY) [[NSUserDefaults standardUserDefaults] valueForKey:(KEY)]

#define kGetObhectForKey(KEY) [[NSUserDefaults standardUserDefaults] objectForKey:(KEY)]

#define kGetIntForKey(KEY) [[NSUserDefaults standardUserDefaults] integerForKey:(KEY)]

//用户信息
#define kIsLogin @"isLogin"
#define kUserName @"urid"
#define kUserPassword @"psw" //用户的登录密码

#endif /* Config_h */
